From 9da26d79bbbe4a1e58667a77a617d8001ee5d8cc Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Thu, 23 Mar 2023 17:47:41 +0100 Subject: [PATCH] Use AccountPtr in testpushnotifications Signed-off-by: Claudio Cambra --- test/testpushnotifications.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/testpushnotifications.cpp b/test/testpushnotifications.cpp index ee7e0c4fc..e8a2ab08c 100644 --- a/test/testpushnotifications.cpp +++ b/test/testpushnotifications.cpp @@ -257,8 +257,8 @@ private slots: QCOMPARE(connectionLostSpy.count(), 1); - auto accountSent = pushNotificationsDisabledSpy.at(0).at(0).value(); - QCOMPARE(accountSent, account.data()); + const auto accountSent = pushNotificationsDisabledSpy.at(0).at(0).value(); + QCOMPARE(accountSent.data(), account.data()); } void testAccount_web_socket_authenticationFailed_emitNotificationsDisabled() @@ -272,8 +272,8 @@ private slots: // Now the pushNotificationsDisabled Signal should be emitted QCOMPARE(pushNotificationsDisabledSpy.count(), 1); - auto accountSent = pushNotificationsDisabledSpy.at(0).at(0).value(); - QCOMPARE(accountSent, account.data()); + const auto accountSent = pushNotificationsDisabledSpy.at(0).at(0).value(); + QCOMPARE(accountSent.data(), account.data()); } void testPingTimeout_pingTimedOut_reconnect() -- 2.30.2